﻿var path = "http://" + location.host + "/SSTA/expert/agent/";
var expertPath = "http://" + location.host + "/SSTA/expert/";

var total=0;
var searchkeyword = "";


function getNewEnergyExpertList(energyclass){
     if (energyclass=="7") 
         var url = path + "getNewEnergyExpertList.jsp?keyword=ChannelShow='1'&energyclass='"+ energyclass +"'&num=8";
     else    
         var url = path + "getNewEnergyExpertList.jsp?keyword=NewEnergyClass1='" + energyclass + "'  or NewEnergyClass2='" + energyclass + "'&energyclass='"+ energyclass +"'&num=8";
     XmlHttpPool.GetRemoteData(url, showNewEnergyExpertList);	
    
}

function showNewEnergyExpertList(data){ 
      var xml = new ActiveXObject("Microsoft.XMLDOM");
      xml.loadXML(data);
      resultDom.XMLDocument.loadXML(data);
    
      var tempobj = xml.documentElement;
      if(null != tempobj) {
	        var option = null;
                var nodelist = tempobj.selectNodes("//record");
                
                var searchresult = "";
                searchresult = "<div class=\"index_list_expert\">";
	        searchresult += "<ul>"; 
                var len = nodelist.length;
                for(i = 0; i < len; i++) {
                       searchresult += "<li>";
	               searchresult += "<a href = '/SSTA/expert/info.jsp?expid=";
	               searchresult += nodelist.item(i).selectSingleNode(".//ExpertID").text;
                       searchresult += "&title=";
                       searchresult += nodelist.item(i).selectSingleNode(".//Item_180").text;
	               searchresult += "' target=\"_blank\"><img src=\"/SSTA/expert/image/point_blue.gif\" border=0/>　";
	               searchresult += nodelist.item(i).selectSingleNode(".//Item_180").text;
	               searchresult += "</a>";
	               searchresult += "</li>";
                       searchresult += "<li>";
	               searchresult += nodelist.item(i).selectSingleNode(".//WorkSpeciality").text;
	               searchresult += "</li>";
                }
                searchresult += "</ul>";
	        searchresult += "</div>"; 

                var energyclass="";
                if(xml.documentElement.selectSingleNode("//energyclass") != null) 
                  energyclass = xml.documentElement.selectSingleNode("//energyclass").text;
                 
                 switch (energyclass) {     
                   case "\'1\'":
                      document.all["sun"].innerHTML = searchresult;  
                      break; 
                   case "\'2\'": 
                      document.all["wind"].innerHTML = searchresult;  
                      break;
                   case "\'3\'": 
                      document.all["living"].innerHTML = searchresult;  
                      break;
                   case "\'4\'": 
                      document.all["heat"].innerHTML = searchresult;  
                      break;
                   case "\'5\'": 
                      document.all["atom"].innerHTML = searchresult;  
                      break;
                   case "\'6\'": 
                      document.all["other"].innerHTML = searchresult;  
                      break;
                  // case "\'7\'": 
                  //    document.all["recomm"].innerHTML = searchresult;  
                  //    break;

                 }
              
  } 
}


function getRecommExpertList(num){
         var url = path + "getNewEnergyExpertList.jsp?keyword=ChannelShow='1'&num="+num;
         XmlHttpPool.GetRemoteData(url, showRecommExpertList);	 
}


function showRecommExpertList(data){ 
      var xml = new ActiveXObject("Microsoft.XMLDOM");
      xml.loadXML(data);
      resultDom.XMLDocument.loadXML(data);
      
      var tempobj = xml.documentElement;
      if(null != tempobj) {
	        var option = null;
                var nodelist = tempobj.selectNodes("//record");
                
                var searchresult = "";
                searchresult = "<table align=\"center\" class=\"table_recomm\">";
	        var len = nodelist.length;
                
                var j=0;
              for(j = 0; j <=3 ; j=j+3)  {
                for(i = j; i < j+3; i++) {
                    

                      if (i%3==0) {
                          searchresult += "<tr>"; 
                       }
                       if (i < nodelist.length ) {
                           searchresult += "<td width=\"33%\" align=\"center\">";
	                   searchresult += "<a href = '/SSTA/expert/info.jsp?expid=";
	                   searchresult += nodelist.item(i).selectSingleNode(".//ExpertID").text;
	                   searchresult += "' target=\"_blank\">";
	                   searchresult += "<img src=\"/SSTA/expert/image/photo/"+nodelist.item(i).selectSingleNode(".//ExpertID").text+".jpg\" border=\"0\"/>";
	                   searchresult += "</a>";
	                   searchresult += "</td>" ;
                       }
                       else { 
                           searchresult += "<td width=\"33%\"></td>";
                       }
                       if ((i+1)%3==0) {
                          searchresult += "</tr>"; 
                          
                       }           
                 }
                 for(i = j; i < j+3; i++) {
                      if (i%3==0) {
                          searchresult += "<tr>"; 
                       }
                      if (i < nodelist.length) {
                          searchresult += "<td width=\"33%\" align=\"center\">";
                          searchresult += "<a href = '/SSTA/expert/info.jsp?expid=";
	                  searchresult += nodelist.item(i).selectSingleNode(".//ExpertID").text;
                          searchresult += "&title=";
                          searchresult += nodelist.item(i).selectSingleNode(".//Item_180").text;
	                  searchresult += "' target=\"_blank\">";
	                  searchresult += nodelist.item(i).selectSingleNode(".//Item_180").text;
                          searchresult += "</a>";
	                  searchresult += "</td>";
                       }
                       else {
                          searchresult += "<td width=\"33%\"></td>";
                       }
                       if ((i+1)%3==0) {
                          searchresult += "</tr>"; 
                          
                       }           
                 }
 
                 for(i = j; i < j+3; i++) {
                      if (i%3==0) {
                          searchresult += "<tr>"; 
                       }
                      if (i < nodelist.length) {
                          searchresult += "<td width=\"33%\" align=\"center\">";
	                  searchresult += nodelist.item(i).selectSingleNode(".//WorkSpeciality").text;
	                  searchresult += "</td>";
                      }
                      else {
                          searchresult += "<td width=\"33%\"></td>";
                      }
                       if ((i+1)%3==0) {
                          searchresult += "</tr>"; 
                          
                       }           
                 }               
              }
	        searchresult += "</table>"; 
            //document.all["recomm"].innerHTML = searchresult;  

      }
       
}












var GetNodeValue = function(obj)
{
var str = "";
if(window.ActiveXObject)    //IE
{
str = obj.text;
}
else //Mozilla
{
try
{
   str = obj.childNodes[0].nodeValue;
}
catch(ex)
{
   str = "";
}
}
return str;
}

if(document.implementation && document.implementation.createDocument)
{
XMLDocument.prototype.loadXML = function(xmlString)
{
var childNodes = this.childNodes;
for (var i = childNodes.length - 1; i >= 0; i--)
   this.removeChild(childNodes[i]);

var dp = new DOMParser();
var newDOM = dp.parseFromString(xmlString, "text/xml");
var newElt = this.importNode(newDOM.documentElement, true);
this.appendChild(newElt);
};

// check for XPath implementation
if( document.implementation.hasFeature("XPath", "3.0") )
{
    // prototying the XMLDocument
    XMLDocument.prototype.selectNodes = function(cXPathString, xNode)
    {
    if( !xNode ) { xNode = this; }
    var oNSResolver = this.createNSResolver(this.documentElement)
    var aItems = this.evaluate(cXPathString, xNode, oNSResolver,
        XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)
    var aResult = [];
    for( var i = 0; i < aItems.snapshotLength; i++)
    {
    aResult[i] = aItems.snapshotItem(i);
    }
    return aResult;
    }

    // prototying the Element
    Element.prototype.selectNodes = function(cXPathString)
    {
    if(this.ownerDocument.selectNodes)
    {
    return this.ownerDocument.selectNodes(cXPathString, this);
    }
    else{throw "For XML Elements Only";}
    }
}

// check for XPath implementation
if( document.implementation.hasFeature("XPath", "3.0") )
{
    // prototying the XMLDocument
    XMLDocument.prototype.selectSingleNode = function(cXPathString, xNode)
    {
    if( !xNode ) { xNode = this; }
    var xItems = this.selectNodes(cXPathString, xNode);
    if( xItems.length > 0 )
    {
    return xItems[0];
    }
    else
    {
    return null;
    }
    }
  
    // prototying the Element
    Element.prototype.selectSingleNode = function(cXPathString)
    {  
    if(this.ownerDocument.selectSingleNode)
    {
    return this.ownerDocument.selectSingleNode(cXPathString, this);
    }
    else{throw "For XML Elements Only";}
    }
}
}












function showExpertResult(data){ 
	
	
	var str = "";
	var str2 = "";
	var str3 = "";

	var searchresult = "";
	
	pagecap=5;
	var data = eval("("+data+")");
	
	var total=0;
	
	if(data != null) {
          searchresult = "";
      	  if(data.length > 0) {
      	  	 for(i =0;i<data.length;i++) {
      	  		expertid = data[i]['expertid'];
      	  		expertname = data[i]['item_180'];
      	  		work_unit_name = data[i]['item_185'];
      	  		workspec = data[i]['workspeciality'];
      	  		expintro_s = data[i]['expintro_s'];
      	  		
      	  		if(expintro_s=="undefined"||expintro_s==null){
      	  			expintro_s="";
      	  		}
      	  		
      	  		expintro_s = replace_a(expintro_s,"-n-n-n-n-n-n","");
      	  		expintro_s = replace_a(expintro_s,"-n-n-n","");
      	  		
      	  		
      	  		Photo = data[i]['photo'];
      	  		total = data[i]['total'];
      	  		searchresult+="<div id=\"searchlist\">";
      	  		searchresult+="<div id=\"searchlist_left\">";
      	  		
      	  		
      	  		 
      	  		
      	  		searchresult+="<a href='"+expertPath+"info.jsp?expid=" + expertid + "&title="+expertname +"' target=\"_blank\">";
      	  		searchresult+="";
      	  		
      	  		searchresult+=("<img src=\"/SSTA/expert/image/photo/"+expertid+".jpg\" onerror=\"javascript:this.src='/SSTA/common/images/no_photo.png'\" "); 
      	  		
      	  		/*alert(Photo!=null&&!Photo==""&&!Photo=="undefined");
      	  		if(Photo!=null&&!Photo==""&&!Photo=="undefined"){
      	  			if(trim(Photo)!=""){
						searchresult+="/SSTA/"+Photo;
					}else{
						searchresult+="/SSTA/common/images/no_photo.png";
					}
				}else{
					searchresult+="/SSTA/common/images/no_photo.png";
				}
      	  		*/
      	  		
      	  		
      	  		
      	  		
      	  		searchresult+="\"width=\"75\" height=\"85\" class=\"searchlist_pic\"/></a></div>";
      	  		searchresult+="<div id=\"searchlist_right\">";
      	  		searchresult+="<ul><li><span>姓名：</span>";
      	  		//searchresult+=expertname;
      	  		
      	  		searchresult+="<a href='"+expertPath+"info.jsp?expid=" + expertid + "&title="+expertname +"' target=\"_blank\">";
      	  		searchresult+=expertname;
      	  		searchresult+="</a>";
      	  		//searchresult+="<a href='info.jsp?expid=" + expertid + "&title="+expertname +"' target=\"_blank\">" + expertname +"</a>"
      	  		
      	  		searchresult+="</li><li><span>专业：</span>";
      	  		searchresult+=workspec;
      	  		searchresult+="</li>";
      	  		
      	  		searchresult+="";
      	  		searchresult+="<li><span>单位：</span>";
      	  		searchresult+=work_unit_name;
      	  		searchresult+="</li><li style=\"width:80%;height:50px;overflow:hidden;\"><span>介绍：</span>";
      	  		searchresult+=expintro_s;
      	  		searchresult+="</li></ul><div id=\"morebotton\">";
      	  		searchresult+="<a href='info.jsp?expid=" + expertid + "&title="+expertname +"' target=\"_blank\">";
      	  		searchresult+="<img src=\"../common/images/search/botton4.gif\" border=\"0\" /></a></div>";
      	  		searchresult+="</div></div><div id=\"clearboth\"></div>";
      	  		
      	  	 }
      	  }
      }
      
      //alert(searchresult);
      
						
      totalpage = Math.ceil(total / pagecap);
      
      
      
       
	   str2 += "<div  style=\"margin-right:5px;cursor:hand;\" id = 'mylink'>" + setPage(cCount);    
	   str2 += "</div>";
         
           str3 = "<div style=\"margin-right:5px;margin-top:0px;cursor:hand;\" id = 'mylink1'>" + "总页数："+ totalpage +"　"+setPage(cCount);    
	   str3 += "</div>";
	  
           
	
	  if (document.getElementById("blue_title") !=null){
           if (topicname != "") 
				document.getElementById("blue_title").innerHTML = "<div class=\"\">您的搜索条件：<font color=\"#0F49A8\">"+topicname+"</font>　　我们为您找到：<font color=\"#0F49A8\">"+total+"</font> 位专家</div>";
           else
                document.getElementById("blue_title").innerHTML = "<div class=\"blue_title_right\">共搜索到：<font color=\"#0F49A8\">" + total + "</font>条项目</div>";
	  }
	  
      if(document.getElementById("showExpertResult") !=null)   {
               document.getElementById("progressbar").style.display='none';  
               document.getElementById("showExpertResult").innerHTML =  searchresult + "<div style=\"margin-top:20px;\">"+ str2+"</div>";
	  }
}

function changePage(no) {
   
    var url = path + "doSearch.jsp?keyword=" + searchkeyword;
	var rd = total - no * pagecap;
	if(rd > pagecap || no == 1) {
	    rd = pagecap; 
	}
	else if(rd > 0 && rd < pagecap) {
	    rd = pagecap;
	}
	else {
	    rd = pagecap - (no * pagecap - total);
	}
	
	url += "&no="+ no + "&count=" + rd.toString();
    XmlHttpPool.GetRemoteData(url, showExpertResult);
}



function replace_a(str,a,b){
	while(str.indexOf(a)!=-1){
			str=str.replace(a,b);
	}
	return str;
}



function showDetailExpertInfo(data) {

	var str = ""
	var data = eval("("+data+")");
	
	
	if(data != null) {
        
        var str="";
        expertname = data['item_180'];
        
	    document.getElementById("int_show_con_title").innerHTML = expertname;
        document.getElementById("infotitle").value = expertname;
        
        
        
  		   //  str += "<div class=\"title\">　"+ node.selectSingleNode("./Item_180").text + "</div>"; 
           //str += "<div class=\"blank10\"></div>";
    	  str += "<div><table  style=\"margin-top:0px;\" class=\"table_info\" align=\"left\">";
           
           if(null != data['item_181'] && data['item_181'] != "null"  && data['item_181'] != null){
	   		      str +=" <tr><td >【性别】　";
                  if (data['item_181'] == "0") 
	             	 str +="男";
                  else
                     str +="女";
	   		      str +="</td></tr>";
            } 
             
             
             
             
             /*
             if(null != node.selectSingleNode("./Item_182") && node.selectSingleNode("./Item_182").text != "null"  && node.selectSingleNode("./Item_182").text != null){
		   str +=" <tr><td>【出生年月】　";
		   str +=node.selectSingleNode("./Item_182").text;
		   str +="</td></tr>";	
             }
	    */				
	    			
	    
	  
            if(null != data['item_183'] && data['item_183'] != "null"  && data['item_183'] != null) {
		  str +=" <tr><td>【职称】　";
		  str +=data['item_183'];				
		  str +="</td></tr>";	
             }

			
            if(null != data['item_184'] && data['item_184'] != "null"  && data['item_184'] != null) {
		  str +=" <tr><td>【文化程度】　";
		  str +=data['item_184'];				
		  str +="</td></tr>";	
             }	
              
            if(null != data['workspeciality'] && data['workspeciality'] != "null"  && data['workspeciality'] != null) {
		  str +=" <tr><td>【现从事专业】　";
		  str +=data['workspeciality'];				
		  str +="</td></tr>";	
             }	
	    		
	     if(null != data['graduateschool'] && data['graduateschool'] != "null"  && data['graduateschool'] != null) {
		  str +=" <tr><td>【毕业学校】　";
		  str +=data['graduateschool'];				
		  str +="</td></tr>";	
             }
				
	    	
	     if(null != data['speciality'] && data['speciality'] != "null"&& data['speciality'] != "") {
		   str +=" <tr><td>【所学专业】　";
		   str +=data['speciality'];					
		   str +="</td></tr>";	
             }
				
				
	     if(null != data['degree'] && data['degree'] != "null"  && data['degree'] != null){
		   str +=" <tr><td>【学位】　";
		   str += data['degree'];
		   str +="</td></tr>";	
             }
				
			
	    if(null != data['clan'] && data['clan'] != "null"  && data['clan'] != null) {
		   str +=" <tr><td>【党派】　";
		   str +=data['clan'];			
		   str +="</td></tr>";	
            }
				
			
	    if(null != data['nationality'] && data['nationality'] != "null" && data['nationality'] != null) {
		   str +=" <tr><td >【民族】　";
		   str +=data['nationality'];				
		   str +="</td></tr>";	
            }
				
	    if(null != data['duty'] && data['duty'] != "null"  && data['duty'] != null) {
		   str +=" <tr><td >【职务】　";
		   str +=data['duty'];				
		   str +="</td></tr>";	
            }
				
	    
	    
            if(null != data['item_185'] && data['item_185'] != "null"  && data['item_185'] != null){
		    str +=" <tr><td>【单位】　";
                    str +=data['item_185'];
                    str +="</td></tr>";
	   }
				
			
	    /*if(null != node.selectSingleNode("./Item_38") && node.selectSingleNode("./Item_38").text != "null") {
		    str +=" <tr><td >【邮编】　";
		    str +=node.selectSingleNode("./Item_38").text;		
		    str +="</td></tr>";	
            }
				
				
	    if(null != node.selectSingleNode("./Item_37") && node.selectSingleNode("./Item_37").text != "null") {
		    str +=" <tr><td >【通讯地址】　";
		    str +=node.selectSingleNode("./Item_37").text;				
		    str +="</td></tr>";	
            }
				
				
	    if(null != node.selectSingleNode("./Item_39") && node.selectSingleNode("./Item_39").text != "null") {
		    str +=" <tr><td>【电话】　";
		    str +=node.selectSingleNode("./Item_39").text;				
		    str +="</td></tr>";	
            }
				
				
	    if(null != node.selectSingleNode("./Item_40") && node.selectSingleNode("./Item_40").text != "null") {
		    str +=" <tr><td>【传真】　";
		    str +=node.selectSingleNode("./Item_40").text;				
		    str +="</td></tr>";	
             }
				
			
	    if(null != node.selectSingleNode("./Email") && node.selectSingleNode("./Email").text != "null") {
		    str +=" <tr><td>Email：";
		    str +=node.selectSingleNode("./Email").text;				
		    str +="</td></tr>";	
            }*/
			
			
	    if(null != data['expintro'] && data['expintro'] != "null" && data['expintro'] != null && data['expintro']!= "") {
		    str +="<tr><td>【专家简介】　</td></tr>";
		    str +=" <tr><td>　　";
		    str +=replace_a(data['expintro'],"-n-n-n","");
		    str += "</td></tr>";
        }
				
				
	    if(null != data['achievement'] && data['achievement'] != "null"  && data['achievement'] != null && data['achievement'] != "") {
		     str +="<tr><td>【主要成就】　</td></tr>";
		     str +=" <tr><td>　　";
		     
		     var achie = data['achievement'];
		     achie = replace_a(achie,"-n-n-n-n-n-n", "<br/>");
		     achie = replace_a(achie,"-n-n-n", "<br/>");
		     str += achie;
		     str += "</td></tr>"; 
        }
				
            /*
		     str +=" <tr><td>";
	     if(null != node.selectSingleNode("./StrongTrait") && node.selectSingleNode("./StrongTrait").text != "null"  && node.selectSingleNode("./StrongTrait").text != null && trim(node.selectSingleNode("./StrongTrait").text) != "")
		      str +="<tr><td>【擅长领域】　</td></tr>";
		     str +=" <tr><td >　　";					
		     str +=node.selectSingleNode("./StrongTrait").text;				
		     str += "</td></tr>"; 
              }
             */
         
	     
	      
	      
         /*暂时屏闭 研发的科技成果 
	     var kjcgidnodelist=xml.documentElement.selectNodes("./KjcgID");
         var item_3nodelist=xml.documentElement.selectNodes("./Item_3");
	     var item_186nodelist=xml.documentElement.selectNodes("./Item_186");
         var item_2nodelist=xml.documentElement.selectNodes("./item_2");
         var item_126nodelist=xml.documentElement.selectNodes("./Item_126");
         var item_yearnodelist=xml.documentElement.selectNodes("./Item_Year");
         var item_13_1snodelist=xml.documentElement.selectNodes("./Item_13_1s");
         var item_9nodelist=xml.documentElement.selectNodes("./Item_9");
         var cocreatornodelist=xml.documentElement.selectNodes("./CoCreator");
         var str1="";
         
	     if (kjcgidnodelist.length >0) {
		    str +="<tr><td colspan=2 cellborder-left=\"0\">【研发的科技成果】　</td></tr>";				
		    str +=" <tr><td colspan=2 cellborder-left=\"0\" >";
                  
		    for ( i = 0; i < kjcgidnodelist.length; i++) {
			str += "<li style=\"list-style:none;\">";
			str += (i+1).toString()+".&nbsp;&nbsp;";			
			if(null != item_3nodelist.item(i) && item_3nodelist.item(i).text != "null") {
				str += "<a style='text-decoration:underline;' href='/achieve/info.jsp?kjcgid=" +kjcgidnodelist.item(i).text + "&title=" + item_3nodelist.item(i).text; 
				str += "' target=\"_blank\">" + item_3nodelist.item(i).text + "</a>&nbsp;&nbsp;";	
								}	
					 		if(null != item_186nodelist.item(i) && item_186nodelist.item(i).text != "null"&& item_186nodelist.item(i).text != ""){
							     str1 = "<font color=#006699>"+"该专家对成果贡献:" + "</font>" + item_186nodelist.item(i).text + "&nbsp;&nbsp;";	
                                                        }

                                                       if(null != item_2nodelist.item(i) && item_2nodelist.item(i).text != "null"&& item_2nodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"成果水平:"+"</font>"+item_2nodelist.item(i).text+"&nbsp;&nbsp;";	
                                                        } 
                                                         
                                                       if(null != item_126nodelist.item(i) && item_126nodelist.item(i).text != "null"&& item_126nodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"课题来源:"+"</font>"+item_126nodelist[i].text+"&nbsp;&nbsp;";	
                                                        }
                                                        if(null != item_yearnodelist.item(i) && item_yearnodelist.item(i).text != "null"&& item_yearnodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"成果年份:"+"</font>"+item_yearnodelist.item(i).text+"&nbsp;&nbsp;";	
                                                        }
 
                                                        
                                                        if(null != item_9nodelist.item(i) && item_9nodelist.item(i).text != "null" && item_9nodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"完成单位:"+"</font>"+item_9nodelist[i].text+"&nbsp;&nbsp;";	
                                                        }
                                                        if(null != cocreatornodelist.item(i) && cocreatornodelist.item(i).text != "null" && cocreatornodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"完成人:"+"</font>"+cocreatornodelist.item(i).text+"&nbsp;&nbsp;";	
                                                        }
                                                       
                                                        if(null != item_13_1snodelist.item(i) && item_13_1snodelist.item(i).text != "null" && item_13_1snodelist.item(i).text != ""){
							     str1 += "<font color=#006699>"+"成果简介:"+"</font>" + item_13_1snodelist.item(i).text+"......&nbsp;&nbsp;";	
                                                        }
                                              
	                                                if (str1 != "") {
                                                             str1 = "[" + trim(str1) + "]";
                                                        } 
							str += str1 + "</li>";
					
			}	
                 																		
		}
		else
		{
					str +="&nbsp;";
		}
		*/
		
		
		
		str += "</td></tr>";
				
				
				
	    /*暂时屏闭 参与鉴定的科技成果
        var str2 ="";
		var jdcgidnodelist=xml.documentElement.getElementsByTagName("./JdcgID");
		var jdcg_item_3nodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_3");
		var item_191nodelist=xml.documentElement.getElementsByTagName("./Item_191");
        var jdcg_item_2nodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_2");
        var jdcg_item_126nodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_126");
        var jdcg_item_Yearnodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_Year");
        var jdcg_item_13_1snodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_13_1s");
        var jdcg_item_9nodelist=xml.documentElement.getElementsByTagName("./Jdcg_Item_9");
        var appraisernodelist=xml.documentElement.getElementsByTagName("./Appraiser");
		if (jdcgidnodelist.length >0) {
			str +="<tr><td colspan=2 cellborder-left=\"0\">【参与鉴定的项目】　</td></tr>";
			str +=" <tr><td colspan=2 cellborder-left=\"0\" >";
			for ( i = 0; i < jdcgidnodelist.length; i++) {
				str += "<li style=\"list-style:none;\">";
				str += (i+1).toString()+".&nbsp;&nbsp;";			
				if(null != jdcg_item_3nodelist.item(i) && jdcg_item_3nodelist.item(i).text != "null") {
					str += "<a style='text-decoration:underline;' href='/achieve/info.jsp?kjcgid="  + jdcgidnodelist.item(i).text +"&title=" + jdcg_item_3nodelist.item(i).text; 
					str += "' target=\"_blank\">"+jdcg_item_3nodelist.item(i).text+"</a>&nbsp;&nbsp;";	
							
					if(null != item_191nodelist.item(i) && item_191nodelist.item(i).text != "null"&& item_191nodelist.item(i).text != ""){
				                str2 = "<font color=#006699>"+"鉴定委员会职务:"+"</font>"+item_191nodelist.item(i).text+"&nbsp;&nbsp;";	
                                                             
                                        }
                                        if(null != jdcg_item_2nodelist.item(i) && jdcg_item_2nodelist.item(i).text != "null"&& jdcg_item_2nodelist.item(i).text != ""){
					         str2 += "<font color=#006699>"+"成果水平:"+"</font>"+jdcg_item_2nodelist.item(i).text+"&nbsp;&nbsp;";	
                                        }
	                                                
                                        if(null != jdcg_item_126nodelist[i] && jdcg_item_126nodelist[i].text != "null"&& jdcg_item_126nodelist[i].text != ""){
					         str2 += "<font color=#006699>"+"课题来源:"+"</font>"+jdcg_item_126nodelist[i].text+"&nbsp;&nbsp;";	
                                        }
                                                         
                                        if(null != jdcg_item_Yearnodelist.item(i) && jdcg_item_Yearnodelist.item(i).text != "null"&& jdcg_item_Yearnodelist.item(i).text != ""){
					          str2 += "<font color=#006699>"+"成果年份:"+"</font>"+jdcg_item_Yearnodelist.item(i).text+"&nbsp;&nbsp;";	
                                        }
                                                       	
                                                       
                                        if(null != jdcg_item_9nodelist.item(i) && jdcg_item_9nodelist.item(i).text != "null" && jdcg_item_9nodelist.item(i).text != ""){
					           str2 += "<font color=#006699>"+"完成单位:"+"</font>"+jdcg_item_9nodelist.item(i).text+"&nbsp;&nbsp;";	
                                        }
                                                        
                                        if(null != appraisernodelist.item(i) && appraisernodelist.item(i).text != "null" && appraisernodelist.item(i).text != ""){
					           str2 += "<font color=#006699>"+"鉴定专家:"+"</font>"+appraisernodelist.item(i).text+"&nbsp;&nbsp;";	
                                        }
                                        
                                        if(null != jdcg_item_13_1snodelist.item(i) && jdcg_item_13_1snodelist.item(i).text != "null" &&jdcg_item_13_1snodelist.item(i).text != ""){
						   str2 += "<font color=#006699>"+"成果简介:"+"</font>" + jdcg_item_13_1snodelist.item(i).text + "......&nbsp;&nbsp;";	
                                        }

                                   }
	                           if (str2 != "") {
                                             str2  = "[" + trim(str2) + "]";
                                   } 
				   str += str2 + "</li>";
				
			        }																				
		           }	
		 else
		 {
			str +="&nbsp;";
		 }
		 */
		 
		 
		 
		 
           
		 str += "</td></tr>";
		 
		 
		 
		 str +="</table></div>";
         str +="<div class=\"blank40\"></div>";
         //str +="<div style=\"text-align:center;\" class=\"info_button\"><a href=\"javascript:window.print();\" ><img src=\"/SSTA/common/image/print.gif\" border=\"0\"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  onclick=\"mycollect()\"><img src=\"/SSTA/common/image/collect.gif\"></a></div>";																												                					
	}
        
    
    if(document.getElementById("showDetailExpertInfo")!=null)   {
         document.getElementById("progressbar").style.display='none';  
         document.getElementById("showDetailExpertInfo").innerHTML =  str; 
	}
	
}

function trim (_str){  
    return _str.replace(/(^\s*)|(\s*$)/g, "");  
}
